package com.imooc.distributedemo.print;

        import org.springframework.beans.factory.BeanFactory;
        import org.springframework.beans.factory.xml.XmlBeanFactory;
        import org.springframework.context.ApplicationContext;
        import org.springframework.context.annotation.Scope;
        import org.springframework.context.annotation.ScopedProxyMode;
        import org.springframework.context.support.FileSystemXmlApplicationContext;
        import org.springframework.stereotype.Component;

        import java.io.File;

@Component
public class SpringBeanDemo {

    public void method(){
        BeanFactory beanFactory = new XmlBeanFactory(null,null);
        ApplicationContext context = new FileSystemXmlApplicationContext(new File("D://123.java`").getAbsolutePath());

    }
}